<?php

namespace iBrand\Store\Backend\Http\Middleware;

use Encore\Admin\Facades\Admin;
use Illuminate\Http\Request;

class Bootstrap
{
	public function handle(Request $request, \Closure $next)
	{
		Admin::css('/assets/backend/libs/Tagator/fm.tagator.jquery.css');

		Admin::js('/assets/backend/libs/Tagator/fm.tagator.jquery.js');

		if (file_exists($bootstrap = __DIR__ . '/../../Extensions/' . 'bootstrap.php')) {
			require $bootstrap;
		}

		return $next($request);
	}
}